package duckcase.duck;

import duckcase.duck.strategy.fly.NoFly;
import duckcase.duck.strategy.quack.NoQuack;

/**
 * description:
 *  木鸭啥都不会
 * @author yuanmenglv on 2019/11/25
 */
public class MuteDuck extends Duck{

    public MuteDuck(){
        this.flyAble = new NoFly();
        this.quackAble = new NoQuack();
    }
    @Override
    public void display() {
        System.out.println("这是一只模型鸭");
        this.fly();
        this.quack();
    }
}
